package com.icloud.common.database.model;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@Builder
@TableName("customer_wallet")
@ApiModel(value = "CustomerWallet对象", description = "客户钱包表")
public class CustomerWallet implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("前台账号 app_customer.id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("BSC账户地址")
    @TableField(value = "bsc_addr")
    private String bscAddr;

    @ApiModelProperty("bcpc余额")
    @TableField("bcpc")
    private BigDecimal bcpc;

    @ApiModelProperty("可提现余额")
    @TableField("withdrawable")
    private BigDecimal withdrawable;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
